#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QEvent>
#include "framelesswindow.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class MyWidget : public FramelessWindow
{
    Q_OBJECT

public:
    MyWidget(QWidget *parent = nullptr);
    ~MyWidget();
    void InitForm();

protected:
    void changeEvent(QEvent* event) override;

private:
    QWidget* _titleWidget;
    QLabel* _lblIcon;
    QLabel* _lblTitle;
    QPushButton* _btnMin;
    QPushButton* _btnMax;
    QPushButton* _btnClose;
    QWidget* _mainWidget;
};
#endif // WIDGET_H
